<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

request.setAttribute("path", path);
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 	<head>
		<base href="<%=basePath%>">
		
		<title>My JSP 'pedidosList.jsp' starting page</title>
		<jsp:include page="/includes.jsp"></jsp:include>
	</head>
  
  <body>
	<jsp:include page="/menu-bar.jsp"></jsp:include>
	<div class="container">
		<form action="${path}/pedidos/eliminar.do">
			<select name="pedido">
				<c:forEach var="row" items="${pedidos}">
					<option value="${row.id}">${row.fecha} | ${ row.fecha } | ${row.cliente.apellido}, ${row.cliente.nombre}</option>
				</c:forEach>
			</select>
	 	</form>
	</div>
  </body>
</html>
